<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
   
  <url>
      <loc><?php echo url_for('@homepage', true) ?></loc>    
    <priority>0.90</priority>
    <changefreq>always</changefreq>
  </url>   
    
  <?php foreach($blog_news_atom as $blog_new): ?>
  <url>
    <loc><?php echo url_for('new_show_user', $blog_new, true)?></loc>
    <lastmod><?php echo $blog_new->getDateTimeObject('updated_at')->format('c')?></lastmod>
    <changefreq>always</changefreq>
    <priority>0.80</priority>
  </url>   
  <?php endforeach ?>
    
  <?php foreach($blog_categories as $blog_category): ?>
  <url>
    <loc><?php echo url_for('category', $blog_category, true)?></loc>
    <lastmod><?php echo $blog_category->getDateTimeObject('updated_at')->format('c')?></lastmod>    
    <priority>0.30</priority>
    <changefreq>daily</changefreq>
  </url>   
  <?php endforeach ?>  
</urlset>